package com.zr.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author: peterChen
 * @date: 2019/11/22 11:22
 * @description: com.zr.entity  员工上传文件的信息列表实体类
 * @version: 1.0
 */
@Data
@Table(name = "stafffile")
public class StaffFile {
    @Id
    @KeySql(useGeneratedKeys = true)
    private Long id;
    private Long staffId;
    private String fileUrl;
    private String filename;
    private String uuidFilename;
    private String fileType;

    public StaffFile() {
    }

    public StaffFile(Long id, Long staffId, String fileUrl, String filename, String uuidFilename, String fileType) {
        this.id = id;
        this.staffId = staffId;
        this.fileUrl = fileUrl;
        this.filename = filename;
        this.uuidFilename = uuidFilename;
        this.fileType = fileType;
    }

    public StaffFile(Long staffId,String fileUrl, String filename, String uuidFilename, String fileType) {
        this.staffId = staffId;
        this.fileUrl = fileUrl;
        this.filename = filename;
        this.uuidFilename = uuidFilename;
        this.fileType = fileType;
    }
}
